package com.origin.src.datasource.sharding.algorithm;

import lombok.NoArgsConstructor;

import java.util.zip.CRC32;
import java.util.zip.Checksum;

@NoArgsConstructor
public class Crc32ChecksumModShardingAlgorithm extends ChecksumModShardingAlgorithm {


    @Override
    public Checksum getChecksum() {
        return new CRC32();
    }

    @Override
    public String getType() {
        return "CRC32_MOD";
    }
}
